package com.aube.interact.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by huyaonan on 15/11/7.
 */
public class TimeLineData implements Serializable {

    public String videoid="";
    public String videono="";
    public String starttime="";
    public String endtime="";
    public String title="";
    public List<TimeLinePiece> timeline;

    //新增背景图片
    public PicItem bgpic;

    public String themeColor="";//qa选中的颜色, #ff0000

    public String getBgUrl() {
        return bgpic == null ? "" : bgpic.picurl;
    }

    public int size() {
        if(timeline == null)
            return 0;
        return timeline.size();
    }

    public TimeLinePiece getItem(int index) {
        if(index < 0 || index >= size())
            return null;
        return timeline.get(index);
    }

}
